#include <stdio.h>
int main(){
    int n;
    n = 9;
    scanf("%d",&n);
    int i,j;
    i = 1;
    while(i <= n){
        j = 1;
        printf("\n");
        while(j <= i){
                printf("%d*%d=%d",j,i,j*i);
            
            if( i*j >=10){
                printf("  ");
            }else{
                printf("   ");
            }
            j++;
        }
        i++;
    }
    return 0;
}